package org.lv.learning.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.math.BigDecimal;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@TableName("t_order")
public class Order {

    @TableId(value = "order_id", type = IdType.ASSIGN_ID)
    private Long orderId;

    private Long userId;

    private Long productId;

    private Integer count;

    private BigDecimal money;

}
